<?php if(isset($_SESSION['user']['user_id']) && $_SESSION['user']['user_id']!=""){?>
<script>
	function validate(){
		$("#formid").attr( "action", "userprofile_confirm" );	
		$("#formid").submit();
	}

</script>
<div class="col-md-8">
<div class="main-content" id="main-content">
	<div class="sub-content">
		<div class="top-header page-header clearfix">
			<h1>User Profile</h1>
		</div>
		<div class="top-links">
			<ul class="form-progress-bar">				
				<li class="active-menu step-no"><a href="<? echo $this->Url('profiles')?>/userprofile"><span>1</span></a></li>
				<li class="indicator active-menu"><span></span></li>
				<li class="step-no active-menu"><a  href="<? echo $this->Url('profiles')?>/userprofile_next"><span>2</span></a></li>
				<li class="indicator"><span></span></li>
				<li class="step-no"><span>3</span></li>
			</ul>
		</div>
		<div class="user-profile1 col-md-12">
			<form id="formid" method="post" class="form-horizontal" role="form">
				
					<div class="form-group">
						<label class="control-label col-sm-3">Contact Person 1</label>
						<div class="col-sm-9">
							<?if( isset($this->user_details->contact_person) ){?>
								<input  type="text" id="cperson" name="cperson" readonly="readonly" class="form-control"  value="<? echo $this->user_details->contact_person;?>" placeholder="Contact Person 1"> 
							<?}?>
					</div></div>
					<div class="form-group">
						<label class="control-label col-sm-3">Mobile No</label>
						<div class="col-sm-9">
							<?if( isset($this->user_details->mobile) ){?>
								<input  type="text" id="mobile" name="mobile" readonly="readonly" class="form-control" value="<? echo $this->user_details->mobile;?>" placeholder="Mobile No">
							<?}?>
					</div></div>
					<div class="form-group">
						<label class="control-label col-sm-3">Email Address</label>
						<div class="col-sm-9">
							<?if( isset($this->user_details->second_email) ){?>
								<input  type="text" id="email" name="email" readonly="readonly" class="form-control" value="<? echo $this->user_details->second_email;?>" placeholder="Email"> 
							<?}?>
					</div></div>
				    <div class="form-group">
						<label class="control-label col-sm-3">Bank Address</label>
							<div class="col-sm-9">
							<?if( isset($this->user_details->bankaddress) ){?>
								<input  type="text" id="baddress" name="baddress" readonly="readonly" class="form-control" value="<? echo $this->user_details->bankaddress;?>" placeholder="Bank Address"> 
							<?}?>
					</div></div>
					<div class="form-group">
						<label class="control-label col-sm-3">Account No</label>
							<div class="col-sm-9">
							<?if( isset($this->user_details->account_number) ){?>
								<input  type="text" id="acno" name="acno" readonly="readonly" class="form-control"  value="<? echo $this->user_details->account_number;?>" placeholder="Account No"> 
							<?}?>
					</div></div>
					<div class="form-group">
						<label class="control-label col-sm-3">Note</label>
						<div class="col-sm-9">
							<?if( isset($this->user_details->note) ){?>
								<input  type="text" id="note" name="note" readonly="readonly" class="form-control" value="<? echo $this->user_details->note;?>" placeholder="Note">
							<?}?>
							</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-3">User Type</label>
							<div class="col-sm-9">
							<?if( isset($this->user_details->user_type) ){?>
								<input  type="text" id="type" name="type" readonly="readonly" class="form-control" value="<? echo $this->user_details->user_type;?>" placeholder="User Type">
							<?}?>
					</div></div>
					<div class="form-group">
								<label class="control-label col-sm-3">Status</label>
							<div class="col-sm-9">
							<?if( isset($this->user_details->u_status) ){
							if( $this->user_details->u_status == '0' ){
								$statusMsg = "Pending";
							}
							else if( $this->user_details->u_status == '1' ){
								$statusMsg = "Activate";
							}
							else if( $this->user_details->u_status == '2' ){
									$statusMsg = "DeActive";
								}?>
									<input  type="text" id="status" name="status" class="form-control" readonly="readonly"  value="<? echo $statusMsg;?>" placeholder="status">
							<?}?>
							</div>
					</div>

					<input type="hidden" id="hid_user_id" name="hid_user_id" value=""/>				
					<input type="hidden" id="edit_status" name="edit_status" value="">
					<div class="form-group">
						<div class="col-sm-3">&nbsp;</div>
						<div class="col-sm-9">
						<a href="javascript:void(0)" class="btn btn-danger" id="register" onclick="validate();" role="button">Continue</a></div>
					</div>
				
			</form>
		</div>
	</div>
</div></div>
<?php }else{?>
<script>
	window.location='<? echo $this->Url('home')?>';
</script>
<?php }?>
  
